#pragma once
#include "Singleton.h"
#include "InputManager.h"
class CDXUTDialogResourceManager;

class UIManager : public Singleton<UIManager>, public InputManager::Listener
{
public:
	UIManager();
	~UIManager();

	CDXUTDialogResourceManager* getDialogResourceMgr() { return mDialogResourceMgr; }
	int getWindowWidth() const { return mWindowWidth; }
	int getWindowHeight() const { return mWindowHeight; }

	bool Init();
	void Render(float elapsedTime);

	virtual bool MsgProc(void* hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

private:
	CDXUTDialogResourceManager* mDialogResourceMgr;
	int mWindowWidth;
	int mWindowHeight;

private:
	void OnWindowResized(int width, int height);
};
